<?php 
use yii\helpers\Url;
$old_host_url = \Yii::$app->params['domains']['liketry_url'];
$referer = \Yii::$app->request->getReferrer();
$url = urlencode(\Yii::$app->request->getHostInfo().\Yii::$app->request->url);
?>
<div class="login-popup" id="loginPopup">
  <div class="login-box">
	<form action="" id="baseform">
	 <input type="hidden" name="op" value="login" /> 
	 <input id="returnurl" type="hidden" name="returnurl" value="<?=$url;?>" />
      <h2 class="login-title"><strong>登录</strong><span><i>没有帐号？</i><a href="<?=$old_host_url?>auth/register.php?returnurl=<?=urlencode(Yii::$app->request->getReferrer())?>" class="icon-login icon-login-right">现在注册</a></span></h2>
      <div class="login-error"></div>
      <div class="login-input">
        <label><span class="icon-login icon-login-user"></span>
        <input name="login_name" type="text"  id="login_name" value="" placeholder="邮箱、用户名或手机号码">
        </label>
        <label><span class="icon-login icon-login-psw"></span>
          <input type="password" name="login_password" placeholder="密码">
        </label>
      </div>
	  <div class="login-code">
	  <label><span class="login-name">验证码：</span><input type="text" name="login_yzm"></label>
	  <a class="login-code-reget"><img src="<?=Url::to(['login/verify'])?>"/></a>
      </div>
      <div class="login-tools">
        <label>
        <input type="checkbox" value="1" name="login_mdl" id="login_mdl" />
          一个月内免登陆</label>
        <a href="<?=$old_host_url?>auth/forgot_password.php">忘记密码？</a></div>
      <div class="login-submit">登录</div>
      <div class="login-accounts">
        <h3>使用合作帐号登录</h3>
        <div class="login-accounts-list">
             <a href="<?=$old_host_url?>api/qq/oauth/qq_login.php?r=<?=$referer;?>" class="icon-login icon-login-qq1"><i>腾讯QQ</i></a> 
             <a href="<?=$old_host_url?>api/wb/tsina.php?r=<?=$referer?>" class="icon-login icon-login-sina1"><i>新浪微博</i></a>
             <!--<a href="<?=$old_host_url?>api/renren/trenren.php?r=<?=$referer?>" class="icon-login icon-login-ren1"><i>人人网</i></a> -->
             <!--<a href="http://www.51golife.com/liketryLogin.php" class="icon-login icon-login-bestry1"><i>喜试优选</i></a>-->
             <a href="<?=$old_host_url?>api/alipay/ali_login.php?r=<?=$referer?>" class="icon-login icon-login-alipay1"><i>支付宝</i></a>
             <!--<a href="<?=$old_host_url?>api/kaixin/tkaixin.php?r=<?=$referer?>" class="icon-login icon-login-kaixin1"><i>开心网</i></a> -->
        </div>
      </div>
    </form>
  </div>
</div>